package pattern7.testpaper;

/**
 * p90
 * 模版方法模式
 * @author wdl
 */
public class TemplateMethodPattern {
    public static void main(String[] args) {
        TestPaper studentA=new TestPaperA();
        TestPaper studentB=new TestPaperB();

        System.out.println("同学甲抄的试卷：");
        studentA.testQuestion1();
        studentA.testQuestion2();
        studentA.testQuestion3();

        System.out.println("\n同学乙抄的试卷：");
        studentB.testQuestion1();
        studentB.testQuestion2();
        studentB.testQuestion3();
    }
}
